package design.mode.dispatcher.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class LocalDateUtil {
    public static final String PATTERN = "yyyyMMddHHmmssSSS";
    public static final String Y_M_D = "yyyy-MM-dd";
    public static Date formatStr(String date, String pattern) throws Exception{
        DateFormat dateFormat = new SimpleDateFormat(pattern);
       return dateFormat.parse(date);
    }

}
